package com.chiry.enjoyandroid.gson;

import com.google.gson.annotations.SerializedName;

import lombok.ToString;

/**
 * @author fyx
 * @version 1.0
 * @date 2021/8/27 18:04
 */
@ToString
public class Resp {

    /**
     * args : {}
     * data :
     * files : {}
     * form : {}
     * headers : {"Accept-Encoding":"gzip","Content-Length":"0","Host":"www.httpbin.org","User-Agent":"okhttp/3.14.9","X-Amzn-Trace-Id":"Root=1-6128b8a1-5329a6ea1d8edb800fede4b1"}
     * json : null
     * origin : 123.127.160.132
     * url : http://www.httpbin.org/post
     */

    private Object args;
    private String data;
    private Object files;
    private Object form;
    private HeadersBean headers;
    private Object json;
    private String origin;
    private String url;

    public Object getArgs() {
        return args;
    }

    public void setArgs(Object args) {
        this.args = args;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public Object getFiles() {
        return files;
    }

    public void setFiles(Object files) {
        this.files = files;
    }

    public Object getForm() {
        return form;
    }

    public void setForm(Object form) {
        this.form = form;
    }

    public HeadersBean getHeaders() {
        return headers;
    }

    public void setHeaders(HeadersBean headers) {
        this.headers = headers;
    }

    public Object getJson() {
        return json;
    }

    public void setJson(Object json) {
        this.json = json;
    }

    public String getOrigin() {
        return origin;
    }

    public void setOrigin(String origin) {
        this.origin = origin;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public static class HeadersBean {
        /**
         * Accept-Encoding : gzip
         * Content-Length : 0
         * Host : www.httpbin.org
         * User-Agent : okhttp/3.14.9
         * X-Amzn-Trace-Id : Root=1-6128b8a1-5329a6ea1d8edb800fede4b1
         */

        @SerializedName("Accept-Encoding")
        private String AcceptEncoding;
        @SerializedName("Content-Length")
        private String ContentLength;
        private String Host;
        @SerializedName("User-Agent")
        private String UserAgent;
        @SerializedName("X-Amzn-Trace-Id")
        private String XAmznTraceId;

        public String getAcceptEncoding() {
            return AcceptEncoding;
        }

        public void setAcceptEncoding(String AcceptEncoding) {
            this.AcceptEncoding = AcceptEncoding;
        }

        public String getContentLength() {
            return ContentLength;
        }

        public void setContentLength(String ContentLength) {
            this.ContentLength = ContentLength;
        }

        public String getHost() {
            return Host;
        }

        public void setHost(String Host) {
            this.Host = Host;
        }

        public String getUserAgent() {
            return UserAgent;
        }

        public void setUserAgent(String UserAgent) {
            this.UserAgent = UserAgent;
        }

        public String getXAmznTraceId() {
            return XAmznTraceId;
        }

        public void setXAmznTraceId(String XAmznTraceId) {
            this.XAmznTraceId = XAmznTraceId;
        }
    }
}
